package com.lottery.material.entity.interfaces;

import com.lottery.material.entity.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Description：接口访问历史表
 * Created by 朱正磊 on 2019-04-09 10:25
 */
@Entity
@Data
@EqualsAndHashCode(callSuper = false)
@Table(name = "material_interface_access_history")
public class InterfaceAccessHistory extends BaseEntity {

    private static final long serialVersionUID = -813837636726802241L;

    @Column(columnDefinition = "varchar(255) comment '接口提供方'")
    private String provider;

    @Column(columnDefinition = "varchar(255) comment '请求方式'")
    private String requestMode;

    @Column(columnDefinition = "varchar(255) comment '请求地址'")
    private String requestUrl;

    @Column(columnDefinition = "varchar(255) comment '请求头'")
    private String requestHeader;

    @Column(columnDefinition = "varchar(255) comment '签名方式'")
    private String signMode;

    @Column(columnDefinition = "varchar(255) comment '接口名称'")
    private String interfaceName;

    @Column(columnDefinition = "longtext comment '请求主体'")
    private String requestBody;

    @Column(columnDefinition = "varchar(255) comment '响应时间'")
    private String responseTime;

    @Column(columnDefinition = "longtext comment '响应结果'")
    private String responseResult;

}
